package com.sky.business.sys.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.sky.common.enums.AlarmRecordNvrStatus;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.util.Date;

/**
 * 警报记录
 *
 */
@Data
@TableName(value = "d_alarm_record", autoResultMap = true)
public class AlarmRecord {

    @Serial
    private static final long serialVersionUID = 1L;


    @Schema(description = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 设备id
     */
    @Schema(description = "设备ID")
    @TableField(value = "camera_config_id")
    private Long cameraConfigId;

    /**
     * nvl的频道
     */
    @Schema(description = "频道")
    @TableField(value = "channelno")
    private Integer channelno;

    /**
     * 任务id
     */
    @Schema(description = "任务ID")
    @TableField(value = "task_id")
    private String taskId;

    /**
     * 目标类别
     */
    @Schema(description = "目标类别")
    @TableField(value = "class_name")
    private String className;

    /**
     * 是否自主跟踪
     */
    @Schema(description = "自动跟踪")
    @TableField(value = "auto")
    private Boolean auto;

    /**
     * 开始时间
     */
    @Schema(description = "开始时间")
    @TableField(value = "begin_time")
    private Date beginTime;

    /**
     * 结束时间
     */
    @Schema(description = "结束时间")
    @TableField(value = "end_time")
    private Date endTime;


    /**
     * 视频状态
     */
    @Schema(description = "视频状态")
    @TableField(value = "video_status")
    private AlarmRecordNvrStatus videoStatus = AlarmRecordNvrStatus.PENDING;


    /**
     * 视频路径
     */
    @Schema(description = "视频路径")
    @TableField(value = "video_path")
    private String videoPath;

    /**
     * 视频url
     */
    @Schema(description = "视频地址")
    @TableField(value = "video_url")
    private String videoUrl;


    /**
     * 图片状态
     */
    @Schema(description = "图片状态")
    @TableField(value = "image_status")
    private AlarmRecordNvrStatus imageStatus = AlarmRecordNvrStatus.PENDING;



    /**
     * 图片路径
     */
    @Schema(description = "图片路径")
    @TableField(value = "image_path")
    private String imagePath;

    /**
     * 图片地址
     */
    @Schema(description = "图片地址")
    @TableField(value = "image_url")
    private String imageUrl;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @Schema(description = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}